<script lang="ts">
import { defineComponent } from "vue";
import RoomDetail from "@/views/detail/components/details.vue";
import { IRoomDetailParams } from "@/api/interface";

export default defineComponent({
  components: {
    RoomDetail
  },
  setup() {

  },
  asyncData({ store, route }: any) {
    const { id } = route.value.params.id;
    return store.dispatch("getRoomDetail", { id } as IRoomDetailParams);
  }
});

</script>

<template>
  <RoomDetail></RoomDetail>
</template>

<style scoped lang="scss">
@import "@/assets/scss/detail/index.scss";
</style>
